using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Photo_Album - 图片相册 - 对象继承类
    /// </summary>
    [MetadataType(typeof(PhotoAlbumValidaTion))]
    public class PhotoAlbum : IPhotoAlbum<PhotoAlbum>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class PhotoAlbumValidaTion
       {

     

        /// <summary>
        /// 相册ID
        /// </summary>
        [Display(Name ="相册ID")]
        [Required]
        [StringLength(36)]
        public String AlbumId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 相册标题
        /// </summary>
        [Display(Name ="相册标题")]
        [Required]
        [StringLength(100)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 所属人用户ID
        /// </summary>
        [Display(Name ="所属人用户ID")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name ="创建时间")]
        [Required]

        public DateTime SubmitTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 照片数量
        /// </summary>
        [Display(Name ="照片数量")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int PhotoCount
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否隐藏
        /// </summary>
        [Display(Name ="是否隐藏")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsHide
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
